package com.it.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import org.springframework.stereotype.Component;

import java.util.Date;
@Data//等价于 getter setter toString方法
@ConfigurationProperties(prefix = "man") //需要搭配getset使用  和@EnableConfigurationProperties是成对存在的
//@Component  //注入复杂属性 bean资源 方式1
public class Man {
    private String userName;
    private Boolean boss;
    private Date birth;
    private Integer age;
}
